﻿<%@ Page Language="C#" MasterPageFile="~/Front6.Master" AutoEventWireup="true" CodeBehind="ManageWorktime2.aspx.cs" Inherits="HRProject.Worktime.ManageWorktime2" Title="Untitled Page" %>
<%@ Import Namespace="HRProject.Code.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="IncludePlaceHolder" runat="server">
    <link type="text/css" href="/css/worktime.css" rel="Stylesheet"/>
    <script type="text/javascript" language="javascript" src="/js/worktime2.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitleIconPlaceHolder" runat="server">
    <img alt="" src="/image/layout/icon/WorktimeIcon.png" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TitleNamePlaceHolder" runat="server">
    <%= ContentProvider.GetString("DailyWorktime") %>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainPanelPlaceHolder" runat="server">
    <br />
    <% int month = DateTime.Now.Month;
       int year = DateTime.Now.Year;
       int day = DateTime.Now.Day; %>
    <%= ContentProvider.GetString("Day") %>: 
    <input type="button" value="&lt;&lt;" onclick="previousDay();"/>
    <input type="text" name="tbxDay" value="<%= day %>" class="dateInput"/>
    <input type="button" value="&gt;&gt;" onclick="nextDay();"/>
    <%= ContentProvider.GetString("Month") %>:
    <input type="button" value="&lt;" onclick="previousMonth();"/>
    <input type="text" name="tbxMonth" value="<%= month %>" class="dateInput"/>
    <input type="hidden" id="hdfDay" name="day" value="<%= day %>"/>
    <input type="hidden" id="hdfMonth" name="month" value="<%= month %>"/>
    <input type="hidden" id="hdfYear" name="year" value="<%= year %>"/>
    <input type="hidden" id="hdfJobTitleId" name="jobTitleId" value=""/>
    <input type="button" value="&gt;" onclick="nextMonth();"/>
    <%= ContentProvider.GetString("Year") %>: 
    <input type="button" value="&lt;&lt;" onclick="previousYear();"/>
    <input type="text" name="tbxYear" value="<%= year %>" class="dateInput"/>
    <input type="button" value="&gt;&gt;" onclick="nextYear();"/>
    <input type="button" id="btnViewMonth" value="<%= ContentProvider.GetString("Select") %>" onclick="selectMonth();"/>
    <br />
    <input type="button" value="<%= ContentProvider.GetString("Update") %>" onclick="updateWorktime();"/>
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" OnClientClick="exportExcel()" UseSubmitBehavior="False" />
    <div style="clear:left" id="divPaging">
    </div>
    <div id="worktimeTable" class="div-table">
        <div class="div-row div-col">
            <div class="div-header c0"><span><%= ContentProvider.GetString("Order") %></span></div>
            <div class="div-header c1"><span><%= ContentProvider.GetString("FullName") %></span></div>
            <div class="div-header c5"><span><%= ContentProvider.GetString("MorningLeaveHasApp") %></span></div>
            <div class="div-header c5"><span><%= ContentProvider.GetString("MorningLeaveNoApp")%></span></div>
            <div class="div-header c5"><span><%= ContentProvider.GetString("AfternoonLeaveHasApp")%></span></div>
            <div class="div-header c5"><span><%= ContentProvider.GetString("AfternoonLeaveNoApp")%></span></div>
        </div>
    </div><br />
</asp:Content>
